<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // match返回的是一个数组，将匹配的字符返回一个数组
        // 如果里面不存在匹配字符返回null
        var str = "你好你来";
        var res  = str.match("ta");
        res = Boolean(res)
        console.log(res)
    </script>
</body>
</html>